package com.example.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WebSocketController {

    @Autowired
    private WebSocketServer webSocketServer;

    @GetMapping("/getQueueDetail")
    public String getQueueDetail() {
        return webSocketServer.getQueueDetail();
    }
}
